package com.xuetang9.cloud.house.properties.web;

import com.xuetang9.cloud.house.domain.VO.PropertiesFeedbackAndFeedbackReplyVO;
import com.xuetang9.cloud.house.domain.entity.Properties;
import com.xuetang9.cloud.house.domain.VO.PropertiesAndRentTypeVO;
import com.xuetang9.cloud.house.domain.entity.*;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.xml.crypto.Data;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author：zxx
 * @date 2020/10/1 18:35
 */
@Controller
public class PropertiesController {
//实例化
//    /**
//     * 房产信息实例
//     */
//   private Properties properties;
//    /**
//     * 房产反馈信息实例
//     */
//    private PropertiesFeedback propertiesFeedback;
//    /**
//     * 房产反馈信息回复
//     */
//    private PropertiesFeedbackReply propertiesFeedbackReply;
//    /**
//     * 房产租售类型
//     */
//    private PropertiesRentType propertiesRentType;
//    /**
//     * 房产状态
//     */
//    private PropertiesStatus propertiesStatus;
//    /**
//     * 房产类型
//     */
//    private PropertiesType propertiesType;
//    /**
//     * 房产年限类型
//     */
//    private PropertiesYearType propertiesYearType;
//    /**
//     * 房产信息和租售类型
//     */
//    private PropertiesAndRentTypeVO propertiesAndRentTypeVO;

    @RequestMapping("properties.html")
    public String properties(ModelMap modelMap){

        //使用集合来保存每个界面需要的实例，这些实例保存到集合中后最终会保存到modelMap里面
        List<PropertiesAndRentTypeVO> propertiesAndRentTypeVOS = new ArrayList<>();

        //第1个数据
        //对应数据库实例
        Properties properties1 = new Properties();
        PropertiesRentType propertiesRentType1 = new PropertiesRentType();
        //房产信息添加信息
        properties1.setPictureUrl("assets/images/property/property-1.jpg");
        properties1.setSquare(500f);
        properties1.setRoomNumber(6);
        properties1.setBathroomNumber(4);
        properties1.setGarageNumber(3);
        properties1.setTitle("江南宅院");
        properties1.setCity("锦江区东大街下东大街568号");
        properties1.setPrice(550f);
        properties1.setIsSpecial((byte) 0 );
        properties1.setIsHot((byte) 1 );

        //出租信息添加信息
        propertiesRentType1.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO1 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO1.setProperties(properties1);
        propertiesAndRentTypeVO1.setPropertiesRentType(propertiesRentType1);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO1);

        //第2个数据
        //对应数据库实例
        Properties properties2 = new Properties();
        PropertiesRentType propertiesRentType2 = new PropertiesRentType();
        //房产信息添加信息
        properties2.setPictureUrl("assets/images/property/property-2.jpg");
        properties2.setSquare(500f);
        properties2.setRoomNumber(6);
        properties2.setBathroomNumber(4);
        properties2.setGarageNumber(3);
        properties2.setTitle("江南宅院");
        properties2.setCity("锦江区东大街下东大街568号");
        properties2.setPrice(550f);
        properties2.setIsSpecial((byte) 0 );
        properties2.setIsHot((byte) 1 );

        //出租信息添加信息
        propertiesRentType2.setTypeName("出售");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO2 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO2.setProperties(properties2);
        propertiesAndRentTypeVO2.setPropertiesRentType(propertiesRentType1);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO2);



        //第3个数据
        //对应数据库实例
        Properties properties3 = new Properties();
        PropertiesRentType propertiesRentType3 = new PropertiesRentType();
        //房产信息添加信息
        properties3.setPictureUrl("assets/images/property/property-3.jpg");
        properties3.setSquare(500f);
        properties3.setRoomNumber(6);
        properties3.setBathroomNumber(4);
        properties3.setGarageNumber(3);
        properties3.setTitle("江南宅院");
        properties3.setCity("锦江区东大街下东大街568号");
        properties3.setPrice(550f);
        properties3.setIsSpecial((byte) 1 );
        properties3.setIsHot((byte) 0 );

        //出租信息添加信息
        propertiesRentType3.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO3 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO3.setProperties(properties3);
        propertiesAndRentTypeVO3.setPropertiesRentType(propertiesRentType3);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO3);


        //第4个数据
        //对应数据库实例
        Properties properties4 = new Properties();
        PropertiesRentType propertiesRentType4 = new PropertiesRentType();
        //房产信息添加信息
        properties4.setPictureUrl("assets/images/property/property-4.jpg");
        properties4.setSquare(500f);
        properties4.setRoomNumber(6);
        properties4.setBathroomNumber(4);
        properties4.setGarageNumber(4);
        properties4.setTitle("江南宅院");
        properties4.setCity("锦江区东大街下东大街568号");
        properties4.setPrice(550f);
        properties4.setIsSpecial((byte) 0 );
        properties4.setIsHot((byte) 0 );

        //出租信息添加信息
        propertiesRentType4.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO4 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO4.setProperties(properties4);
        propertiesAndRentTypeVO4.setPropertiesRentType(propertiesRentType4);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO4);


        //第5个数据
        //对应数据库实例
        Properties properties5 = new Properties();
        PropertiesRentType propertiesRentType5 = new PropertiesRentType();
        //房产信息添加信息
        properties5.setPictureUrl("assets/images/property/property-5.jpg");
        properties5.setSquare(500f);
        properties5.setRoomNumber(6);
        properties5.setBathroomNumber(5);
        properties5.setGarageNumber(5);
        properties5.setTitle("江南宅院");
        properties5.setCity("锦江区东大街下东大街568号");
        properties5.setPrice(5500f);
        properties5.setIsSpecial((byte) 0 );
        properties5.setIsHot((byte) 0 );

        //出租信息添加信息
        propertiesRentType5.setTypeName("出售");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO5 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO5.setProperties(properties5);
        propertiesAndRentTypeVO5.setPropertiesRentType(propertiesRentType5);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO5);


        //第6个数据
        //对应数据库实例
        Properties properties6 = new Properties();
        PropertiesRentType propertiesRentType6 = new PropertiesRentType();
        //房产信息添加信息
        properties6.setPictureUrl("assets/images/property/property-6.jpg");
        properties6.setSquare(600f);
        properties6.setRoomNumber(6);
        properties6.setBathroomNumber(6);
        properties6.setGarageNumber(6);
        properties6.setTitle("江南宅院");
        properties6.setCity("锦江区东大街下东大街668号");
        properties6.setPrice(6600f);
        properties6.setIsSpecial((byte) 1 );
        properties6.setIsHot((byte) 0 );

        //出租信息添加信息
        propertiesRentType6.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO6 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO6.setProperties(properties6);
        propertiesAndRentTypeVO6.setPropertiesRentType(propertiesRentType6);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO6);


        //第7个数据
        //对应数据库实例
        Properties properties7 = new Properties();
        PropertiesRentType propertiesRentType7 = new PropertiesRentType();
        //房产信息添加信息
        properties7.setPictureUrl("assets/images/property/property-7.jpg");
        properties7.setSquare(700f);
        properties7.setRoomNumber(7);
        properties7.setBathroomNumber(7);
        properties7.setGarageNumber(7);
        properties7.setTitle("江南宅院");
        properties7.setCity("锦江区东大街下东大街778号");
        properties7.setPrice(770f);
        properties7.setIsSpecial((byte) 0 );
        properties7.setIsHot((byte) 1 );

        //出租信息添加信息
        propertiesRentType7.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO7 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO7.setProperties(properties7);
        propertiesAndRentTypeVO7.setPropertiesRentType(propertiesRentType7);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO7);


        //第8个数据
        //对应数据库实例
        Properties properties8 = new Properties();
        PropertiesRentType propertiesRentType8 = new PropertiesRentType();
        //房产信息添加信息
        properties8.setPictureUrl("assets/images/property/property-8.jpg");
        properties8.setSquare(800f);
        properties8.setRoomNumber(8);
        properties8.setBathroomNumber(8);
        properties8.setGarageNumber(8);
        properties8.setTitle("江南宅院");
        properties8.setCity("锦江区东大街下东大街888号");
        properties8.setPrice(880f);
        properties8.setIsSpecial((byte) 1 );
        properties8.setIsHot((byte) 0 );

        //出租信息添加信息
        propertiesRentType8.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO8 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO8.setProperties(properties8);
        propertiesAndRentTypeVO8.setPropertiesRentType(propertiesRentType8);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO8);


        //第9个数据
        //对应数据库实例
        Properties properties9 = new Properties();
        PropertiesRentType propertiesRentType9 = new PropertiesRentType();
        //房产信息添加信息
        properties9.setPictureUrl("assets/images/property/property-9.jpg");
        properties9.setSquare(500f);
        properties9.setRoomNumber(5);
        properties9.setBathroomNumber(4);
        properties9.setGarageNumber(6);
        properties9.setTitle("江南宅院");
        properties9.setCity("锦江区东大街下东大街999号");
        properties9.setPrice(760f);
        properties9.setIsSpecial((byte) 0 );
        properties9.setIsHot((byte) 1 );

        //出租信息添加信息
        propertiesRentType9.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO9 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO9.setProperties(properties9);
        propertiesAndRentTypeVO9.setPropertiesRentType(propertiesRentType9);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO9);

        //将集合保存到modelMap里面
        modelMap.put("propertiesAndRentTypeVOS",propertiesAndRentTypeVOS);

        return "properties";
    }

    @RequestMapping("properties-carousel.html")
    public String propertiesCarousel(ModelMap modelMap){
        //使用集合来保存每个界面需要的实例，这些实例保存到集合中后最终会保存到modelMap里面
        List<PropertiesAndRentTypeVO> propertiesAndRentTypeVOS = new ArrayList<>();

        //第1个数据
        //对应数据库实例
        Properties properties1 = new Properties();
        PropertiesRentType propertiesRentType1 = new PropertiesRentType();
        //房产信息添加信息
        properties1.setPictureUrl("assets/images/property/property-1.jpg");
        properties1.setSquare(500f);
        properties1.setRoomNumber(6);
        properties1.setBathroomNumber(4);
        properties1.setGarageNumber(3);
        properties1.setTitle("西南宅院");
        properties1.setCity("锦江区东大街下东大街568号");
        properties1.setPrice(550f);
        properties1.setIsSpecial((byte) 0 );
        properties1.setIsHot((byte) 1 );

        //出租信息添加信息
        propertiesRentType1.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO1 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO1.setProperties(properties1);
        propertiesAndRentTypeVO1.setPropertiesRentType(propertiesRentType1);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO1);

        //第2个数据
        //对应数据库实例
        Properties properties2 = new Properties();
        PropertiesRentType propertiesRentType2 = new PropertiesRentType();
        //房产信息添加信息
        properties2.setPictureUrl("assets/images/property/property-2.jpg");
        properties2.setSquare(500f);
        properties2.setRoomNumber(6);
        properties2.setBathroomNumber(4);
        properties2.setGarageNumber(3);
        properties2.setTitle("北宅院");
        properties2.setCity("锦江区东大街下东大街568号");
        properties2.setPrice(550f);
        properties2.setIsSpecial((byte) 0 );
        properties2.setIsHot((byte) 1 );


        //出租信息添加信息
        propertiesRentType2.setTypeName("出售");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO2 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO2.setProperties(properties2);
        propertiesAndRentTypeVO2.setPropertiesRentType(propertiesRentType1);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO2);



        //第3个数据
        //对应数据库实例
        Properties properties3 = new Properties();
        PropertiesRentType propertiesRentType3 = new PropertiesRentType();
        //房产信息添加信息
        properties3.setPictureUrl("assets/images/property/property-3.jpg");
        properties3.setSquare(500f);
        properties3.setRoomNumber(6);
        properties3.setBathroomNumber(4);
        properties3.setGarageNumber(3);
        properties3.setTitle("江南宅院");
        properties3.setCity("锦江区东大街下东大街568号");
        properties3.setPrice(550f);
        properties3.setIsSpecial((byte) 1 );
        properties3.setIsHot((byte) 0 );


        //出租信息添加信息
        propertiesRentType3.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO3 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO3.setProperties(properties3);
        propertiesAndRentTypeVO3.setPropertiesRentType(propertiesRentType3);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO3);


        //第4个数据
        //对应数据库实例
        Properties properties4 = new Properties();
        PropertiesRentType propertiesRentType4 = new PropertiesRentType();
        //房产信息添加信息
        properties4.setPictureUrl("assets/images/property/property-4.jpg");
        properties4.setSquare(500f);
        properties4.setRoomNumber(6);
        properties4.setBathroomNumber(4);
        properties4.setGarageNumber(4);
        properties4.setTitle("江南宅院");
        properties4.setCity("锦江区东大街下东大街568号");
        properties4.setPrice(550f);
        properties4.setIsSpecial((byte) 0 );
        properties4.setIsHot((byte) 0 );


        //出租信息添加信息
        propertiesRentType4.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO4 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO4.setProperties(properties4);
        propertiesAndRentTypeVO4.setPropertiesRentType(propertiesRentType4);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO4);


        //第5个数据
        //对应数据库实例
        Properties properties5 = new Properties();
        PropertiesRentType propertiesRentType5 = new PropertiesRentType();
        //房产信息添加信息
        properties5.setPictureUrl("assets/images/property/property-5.jpg");
        properties5.setSquare(500f);
        properties5.setRoomNumber(6);
        properties5.setBathroomNumber(5);
        properties5.setGarageNumber(5);
        properties5.setTitle("江南宅院");
        properties5.setCity("锦江区东大街下东大街568号");
        properties5.setPrice(5500f);
        properties5.setIsSpecial((byte) 0 );
        properties5.setIsHot((byte) 0 );


        //出租信息添加信息
        propertiesRentType5.setTypeName("出售");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO5 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO5.setProperties(properties5);
        propertiesAndRentTypeVO5.setPropertiesRentType(propertiesRentType5);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO5);


        //第6个数据
        //对应数据库实例
        Properties properties6 = new Properties();
        PropertiesRentType propertiesRentType6 = new PropertiesRentType();
        //房产信息添加信息
        properties6.setPictureUrl("assets/images/property/property-6.jpg");
        properties6.setSquare(600f);
        properties6.setRoomNumber(6);
        properties6.setBathroomNumber(6);
        properties6.setGarageNumber(6);
        properties6.setTitle("江南宅院");
        properties6.setCity("锦江区东大街下东大街668号");
        properties6.setPrice(6600f);
        properties6.setIsSpecial((byte) 0 );
        properties6.setIsHot((byte) 0 );


        //出租信息添加信息
        propertiesRentType6.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO6 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO6.setProperties(properties6);
        propertiesAndRentTypeVO6.setPropertiesRentType(propertiesRentType6);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO6);

        //将房产信息的集合保存到modelMap里面
        modelMap.put("propertiesAndRentTypeVOS",propertiesAndRentTypeVOS);

        return "properties-carousel";
    }

    @RequestMapping("properties-carousel2.html")
    public String propertiesCarousel2(ModelMap modelMap){

        //使用集合来保存每个界面需要的实例，这些实例保存到集合中后最终会保存到modelMap里面
        List<PropertiesAndRentTypeVO> propertiesAndRentTypeVOS = new ArrayList<>();

        //第1个数据
        //对应数据库实例
        Properties properties1 = new Properties();
        PropertiesRentType propertiesRentType1 = new PropertiesRentType();
        //房产信息添加信息
        properties1.setPictureUrl("assets/images/property/property-1.jpg");
        properties1.setSquare(500f);
        properties1.setRoomNumber(6);
        properties1.setBathroomNumber(4);
        properties1.setGarageNumber(3);
        properties1.setTitle("西南宅院");
        properties1.setCity("锦江区东大街下东大街568号");
        properties1.setPrice(550f);
        properties1.setIsSpecial((byte) 0 );
        properties1.setIsHot((byte) 1 );

        //出租信息添加信息
        propertiesRentType1.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO1 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO1.setProperties(properties1);
        propertiesAndRentTypeVO1.setPropertiesRentType(propertiesRentType1);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO1);

        //第2个数据
        //对应数据库实例
        Properties properties2 = new Properties();
        PropertiesRentType propertiesRentType2 = new PropertiesRentType();
        //房产信息添加信息
        properties2.setPictureUrl("assets/images/property/property-2.jpg");
        properties2.setSquare(500f);
        properties2.setRoomNumber(6);
        properties2.setBathroomNumber(4);
        properties2.setGarageNumber(3);
        properties2.setTitle("北宅院");
        properties2.setCity("锦江区东大街下东大街568号");
        properties2.setPrice(550f);
        properties2.setIsSpecial((byte) 0 );
        properties2.setIsHot((byte) 1 );


        //出租信息添加信息
        propertiesRentType2.setTypeName("出售");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO2 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO2.setProperties(properties2);
        propertiesAndRentTypeVO2.setPropertiesRentType(propertiesRentType1);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO2);



        //第3个数据
        //对应数据库实例
        Properties properties3 = new Properties();
        PropertiesRentType propertiesRentType3 = new PropertiesRentType();
        //房产信息添加信息
        properties3.setPictureUrl("assets/images/property/property-3.jpg");
        properties3.setSquare(500f);
        properties3.setRoomNumber(6);
        properties3.setBathroomNumber(4);
        properties3.setGarageNumber(3);
        properties3.setTitle("江南宅院");
        properties3.setCity("锦江区东大街下东大街568号");
        properties3.setPrice(550f);
        properties3.setIsSpecial((byte) 1 );
        properties3.setIsHot((byte) 0 );


        //出租信息添加信息
        propertiesRentType3.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO3 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO3.setProperties(properties3);
        propertiesAndRentTypeVO3.setPropertiesRentType(propertiesRentType3);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO3);


        //第4个数据
        //对应数据库实例
        Properties properties4 = new Properties();
        PropertiesRentType propertiesRentType4 = new PropertiesRentType();
        //房产信息添加信息
        properties4.setPictureUrl("assets/images/property/property-4.jpg");
        properties4.setSquare(500f);
        properties4.setRoomNumber(6);
        properties4.setBathroomNumber(4);
        properties4.setGarageNumber(4);
        properties4.setTitle("江南宅院");
        properties4.setCity("锦江区东大街下东大街568号");
        properties4.setPrice(550f);
        properties4.setIsSpecial((byte) 0 );
        properties4.setIsHot((byte) 0 );


        //出租信息添加信息
        propertiesRentType4.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO4 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO4.setProperties(properties4);
        propertiesAndRentTypeVO4.setPropertiesRentType(propertiesRentType4);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO4);


        //第5个数据
        //对应数据库实例
        Properties properties5 = new Properties();
        PropertiesRentType propertiesRentType5 = new PropertiesRentType();
        //房产信息添加信息
        properties5.setPictureUrl("assets/images/property/property-5.jpg");
        properties5.setSquare(500f);
        properties5.setRoomNumber(6);
        properties5.setBathroomNumber(5);
        properties5.setGarageNumber(5);
        properties5.setTitle("江南宅院");
        properties5.setCity("锦江区东大街下东大街568号");
        properties5.setPrice(5500f);
        properties5.setIsSpecial((byte) 0 );
        properties5.setIsHot((byte) 0 );


        //出租信息添加信息
        propertiesRentType5.setTypeName("出售");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO5 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO5.setProperties(properties5);
        propertiesAndRentTypeVO5.setPropertiesRentType(propertiesRentType5);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO5);


        //第6个数据
        //对应数据库实例
        Properties properties6 = new Properties();
        PropertiesRentType propertiesRentType6 = new PropertiesRentType();
        //房产信息添加信息
        properties6.setPictureUrl("assets/images/property/property-6.jpg");
        properties6.setSquare(600f);
        properties6.setRoomNumber(6);
        properties6.setBathroomNumber(6);
        properties6.setGarageNumber(6);
        properties6.setTitle("江南宅院");
        properties6.setCity("锦江区东大街下东大街668号");
        properties6.setPrice(6600f);
        properties6.setIsSpecial((byte) 0 );
        properties6.setIsHot((byte) 0 );

        //出租信息添加信息
        propertiesRentType6.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO6 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO6.setProperties(properties6);
        propertiesAndRentTypeVO6.setPropertiesRentType(propertiesRentType6);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO6);

        //第7个数据
        //对应数据库实例
        Properties properties7 = new Properties();
        PropertiesRentType propertiesRentType7 = new PropertiesRentType();
        //房产信息添加信息
        properties7.setPictureUrl("assets/images/property/property-7.jpg");
        properties7.setSquare(700f);
        properties7.setRoomNumber(7);
        properties7.setBathroomNumber(7);
        properties7.setGarageNumber(7);
        properties7.setTitle("江南宅院");
        properties7.setCity("锦江区东大街下东大街778号");
        properties7.setPrice(7700f);
        properties7.setIsSpecial((byte) 0 );
        properties7.setIsHot((byte) 0 );


        //出租信息添加信息
        propertiesRentType7.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO7 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO7.setProperties(properties7);
        propertiesAndRentTypeVO7.setPropertiesRentType(propertiesRentType7);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO7);

        //第8个数据
        //对应数据库实例
        Properties properties8 = new Properties();
        PropertiesRentType propertiesRentType8 = new PropertiesRentType();
        //房产信息添加信息
        properties8.setPictureUrl("assets/images/property/property-8.jpg");
        properties8.setSquare(800f);
        properties8.setRoomNumber(8);
        properties8.setBathroomNumber(8);
        properties8.setGarageNumber(8);
        properties8.setTitle("江南宅院");
        properties8.setCity("锦江区东大街下东大街888号");
        properties8.setPrice(8800f);
        properties8.setIsSpecial((byte) 0 );
        properties8.setIsHot((byte) 0 );


        //出租信息添加信息
        propertiesRentType8.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO8 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO8.setProperties(properties8);
        propertiesAndRentTypeVO8.setPropertiesRentType(propertiesRentType8);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO8);

        //第9个数据
        //对应数据库实例
        Properties properties9 = new Properties();
        PropertiesRentType propertiesRentType9 = new PropertiesRentType();
        //房产信息添加信息
        properties9.setPictureUrl("assets/images/property/property-9.jpg");
        properties9.setSquare(900f);
        properties9.setRoomNumber(9);
        properties9.setBathroomNumber(9);
        properties9.setGarageNumber(9);
        properties9.setTitle("江南宅院");
        properties9.setCity("锦江区东大街下东大街999号");
        properties9.setPrice(9900f);
        properties9.setIsSpecial((byte) 0 );
        properties9.setIsHot((byte) 0 );

        //出租信息添加信息
        propertiesRentType9.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO9 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO9.setProperties(properties9);
        propertiesAndRentTypeVO9.setPropertiesRentType(propertiesRentType9);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO9);

        //第10个数据
        //对应数据库实例
        Properties properties10 = new Properties();
        PropertiesRentType propertiesRentType10 = new PropertiesRentType();
        //房产信息添加信息
        properties10.setPictureUrl("assets/images/property/property-10.jpg");
        properties10.setSquare(500f);
        properties10.setRoomNumber(5);
        properties10.setBathroomNumber(3);
        properties10.setGarageNumber(7);
        properties10.setTitle("江南宅院");
        properties10.setCity("锦江区东大街下东大街5410号");
        properties10.setPrice(400f);
        properties10.setIsSpecial((byte) 1 );
        properties10.setIsHot((byte) 0 );

        //出租信息添加信息
        propertiesRentType10.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO10 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO10.setProperties(properties10);
        propertiesAndRentTypeVO10.setPropertiesRentType(propertiesRentType10);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO10);

        //第11个数据
        //对应数据库实例
        Properties properties11 = new Properties();
        PropertiesRentType propertiesRentType11 = new PropertiesRentType();
        //房产信息添加信息
        properties11.setPictureUrl("assets/images/property/property-13.jpg");
        properties11.setSquare(500f);
        properties11.setRoomNumber(5);
        properties11.setBathroomNumber(3);
        properties11.setGarageNumber(7);
        properties11.setTitle("江南宅院");
        properties11.setCity("锦江区东大街下东大街5411号");
        properties11.setPrice(400f);
        properties11.setIsSpecial((byte) 1 );
        properties11.setIsHot((byte) 0 );

        //出租信息添加信息
        propertiesRentType11.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO11 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO11.setProperties(properties11);
        propertiesAndRentTypeVO11.setPropertiesRentType(propertiesRentType11);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO11);

        //第12个数据
        //对应数据库实例
        Properties properties12 = new Properties();
        PropertiesRentType propertiesRentType12 = new PropertiesRentType();
        //房产信息添加信息
        properties12.setPictureUrl("assets/images/property/property-14.jpg");
        properties12.setSquare(500f);
        properties12.setRoomNumber(5);
        properties12.setBathroomNumber(3);
        properties12.setGarageNumber(7);
        properties12.setTitle("江南宅院");
        properties12.setCity("锦江区东大街下东大街5412号");
        properties12.setPrice(400f);
        properties12.setIsSpecial((byte) 1 );
        properties12.setIsHot((byte) 0 );

        //出租信息添加信息
        propertiesRentType12.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO12 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO12.setProperties(properties12);
        propertiesAndRentTypeVO12.setPropertiesRentType(propertiesRentType12);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO12);

        //将房产信息的集合保存到modelMap里面
        modelMap.put("propertiesAndRentTypeVOS",propertiesAndRentTypeVOS);

        return "properties-carousel2";
    }

    @RequestMapping("properties-left-sidebar.html")
    public String propertiesLeftSidebar(ModelMap modelMap){

        //使用集合来保存每个界面需要的实例，这些实例保存到集合中后最终会保存到modelMap里面
        List<PropertiesAndRentTypeVO> propertiesAndRentTypeVOS = new ArrayList<>();

        //侧边需要的实例
        List<PropertiesAndRentTypeVO> propertiesAndRentTypeVOS1 = new ArrayList<>();

        //第1个数据
        //对应数据库实例
        Properties properties1 = new Properties();
        PropertiesRentType propertiesRentType1 = new PropertiesRentType();
        //房产信息添加信息
        properties1.setPictureUrl("assets/images/property/property-1.jpg");
        properties1.setSquare(500f);
        properties1.setRoomNumber(6);
        properties1.setBathroomNumber(4);
        properties1.setGarageNumber(3);
        properties1.setTitle("西南宅院");
        properties1.setCity("锦江区东大街下东大街568号");
        properties1.setPrice(550f);
        properties1.setIsSpecial((byte) 0 );
        properties1.setIsHot((byte) 1 );

        //出租信息添加信息
        propertiesRentType1.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO1 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO1.setProperties(properties1);
        propertiesAndRentTypeVO1.setPropertiesRentType(propertiesRentType1);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO1);
        propertiesAndRentTypeVOS1.add(propertiesAndRentTypeVO1);

        //第2个数据
        //对应数据库实例
        Properties properties2 = new Properties();
        PropertiesRentType propertiesRentType2 = new PropertiesRentType();
        //房产信息添加信息
        properties2.setPictureUrl("assets/images/property/property-2.jpg");
        properties2.setSquare(500f);
        properties2.setRoomNumber(6);
        properties2.setBathroomNumber(4);
        properties2.setGarageNumber(3);
        properties2.setTitle("北宅院");
        properties2.setCity("锦江区东大街下东大街568号");
        properties2.setPrice(550f);
        properties2.setIsSpecial((byte) 0 );
        properties2.setIsHot((byte) 1 );

        //出租信息添加信息
        propertiesRentType2.setTypeName("出售");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO2 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO2.setProperties(properties2);
        propertiesAndRentTypeVO2.setPropertiesRentType(propertiesRentType1);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO2);
        propertiesAndRentTypeVOS1.add(propertiesAndRentTypeVO2);



        //第3个数据
        //对应数据库实例
        Properties properties3 = new Properties();
        PropertiesRentType propertiesRentType3 = new PropertiesRentType();
        //房产信息添加信息
        properties3.setPictureUrl("assets/images/property/property-3.jpg");
        properties3.setSquare(500f);
        properties3.setRoomNumber(6);
        properties3.setBathroomNumber(4);
        properties3.setGarageNumber(3);
        properties3.setTitle("江南宅院");
        properties3.setCity("锦江区东大街下东大街568号");
        properties3.setPrice(550f);
        properties3.setIsSpecial((byte) 1 );
        properties3.setIsHot((byte) 0 );

        //出租信息添加信息
        propertiesRentType3.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO3 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO3.setProperties(properties3);
        propertiesAndRentTypeVO3.setPropertiesRentType(propertiesRentType3);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO3);
        propertiesAndRentTypeVOS1.add(propertiesAndRentTypeVO3);


        //第4个数据
        //对应数据库实例
        Properties properties4 = new Properties();
        PropertiesRentType propertiesRentType4 = new PropertiesRentType();
        //房产信息添加信息
        properties4.setPictureUrl("assets/images/property/property-4.jpg");
        properties4.setSquare(500f);
        properties4.setRoomNumber(6);
        properties4.setBathroomNumber(4);
        properties4.setGarageNumber(4);
        properties4.setTitle("江南宅院");
        properties4.setCity("锦江区东大街下东大街568号");
        properties4.setPrice(550f);
        properties4.setIsSpecial((byte) 0 );
        properties4.setIsHot((byte) 0 );

        //出租信息添加信息
        propertiesRentType4.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO4 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO4.setProperties(properties4);
        propertiesAndRentTypeVO4.setPropertiesRentType(propertiesRentType4);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO4);


        //第5个数据
        //对应数据库实例
        Properties properties5 = new Properties();
        PropertiesRentType propertiesRentType5 = new PropertiesRentType();
        //房产信息添加信息
        properties5.setPictureUrl("assets/images/property/property-5.jpg");
        properties5.setSquare(500f);
        properties5.setRoomNumber(6);
        properties5.setBathroomNumber(5);
        properties5.setGarageNumber(5);
        properties5.setTitle("江南宅院");
        properties5.setCity("锦江区东大街下东大街568号");
        properties5.setPrice(5500f);
        properties5.setIsSpecial((byte) 0 );
        properties5.setIsHot((byte) 0 );

        //出租信息添加信息
        propertiesRentType5.setTypeName("出售");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO5 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO5.setProperties(properties5);
        propertiesAndRentTypeVO5.setPropertiesRentType(propertiesRentType5);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO5);


        //第6个数据
        //对应数据库实例
        Properties properties6 = new Properties();
        PropertiesRentType propertiesRentType6 = new PropertiesRentType();
        //房产信息添加信息
        properties6.setPictureUrl("assets/images/property/property-6.jpg");
        properties6.setSquare(600f);
        properties6.setRoomNumber(6);
        properties6.setBathroomNumber(6);
        properties6.setGarageNumber(6);
        properties6.setTitle("江南宅院");
        properties6.setCity("锦江区东大街下东大街668号");
        properties6.setPrice(6600f);
        properties6.setIsSpecial((byte) 1 );
        properties6.setIsHot((byte) 0 );

        //出租信息添加信息
        propertiesRentType6.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO6 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO6.setProperties(properties6);
        propertiesAndRentTypeVO6.setPropertiesRentType(propertiesRentType6);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO6);


        //第7个数据
        //对应数据库实例
        Properties properties7 = new Properties();
        PropertiesRentType propertiesRentType7 = new PropertiesRentType();
        //房产信息添加信息
        properties7.setPictureUrl("assets/images/property/property-7.jpg");
        properties7.setSquare(700f);
        properties7.setRoomNumber(7);
        properties7.setBathroomNumber(7);
        properties7.setGarageNumber(7);
        properties7.setTitle("江南宅院");
        properties7.setCity("锦江区东大街下东大街778号");
        properties7.setPrice(770f);
        properties7.setIsSpecial((byte) 0 );
        properties7.setIsHot((byte) 1 );

        //出租信息添加信息
        propertiesRentType7.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO7 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO7.setProperties(properties7);
        propertiesAndRentTypeVO7.setPropertiesRentType(propertiesRentType7);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO7);


        //第8个数据
        //对应数据库实例
        Properties properties8 = new Properties();
        PropertiesRentType propertiesRentType8 = new PropertiesRentType();
        //房产信息添加信息
        properties8.setPictureUrl("assets/images/property/property-8.jpg");
        properties8.setSquare(800f);
        properties8.setRoomNumber(8);
        properties8.setBathroomNumber(8);
        properties8.setGarageNumber(8);
        properties8.setTitle("江南宅院");
        properties8.setCity("锦江区东大街下东大街888号");
        properties8.setPrice(880f);
        properties8.setIsSpecial((byte) 1 );
        properties8.setIsHot((byte) 0 );

        //出租信息添加信息
        propertiesRentType8.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO8 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO8.setProperties(properties8);
        propertiesAndRentTypeVO8.setPropertiesRentType(propertiesRentType8);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO8);


        //第9个数据
        //对应数据库实例
        Properties properties9 = new Properties();
        PropertiesRentType propertiesRentType9 = new PropertiesRentType();
        //房产信息添加信息
        properties9.setPictureUrl("assets/images/property/property-9.jpg");
        properties9.setSquare(500f);
        properties9.setRoomNumber(5);
        properties9.setBathroomNumber(4);
        properties9.setGarageNumber(6);
        properties9.setTitle("江南宅院");
        properties9.setCity("锦江区东大街下东大街999号");
        properties9.setPrice(760f);
        properties9.setIsSpecial((byte) 0 );
        properties9.setIsHot((byte) 1 );

        //出租信息添加信息
        propertiesRentType9.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO9 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO9.setProperties(properties9);
        propertiesAndRentTypeVO9.setPropertiesRentType(propertiesRentType9);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO9);

        //将集合保存到modelMap里面
        modelMap.put("propertiesAndRentTypeVOS",propertiesAndRentTypeVOS);

        //第10个数据
        //对应数据库实例
        Properties properties10 = new Properties();
        PropertiesRentType propertiesRentType10 = new PropertiesRentType();
        //房产信息添加信息
        properties10.setPictureUrl("assets/images/property/property-10.jpg");
        properties10.setSquare(500f);
        properties10.setRoomNumber(5);
        properties10.setBathroomNumber(4);
        properties10.setGarageNumber(6);
        properties10.setTitle("江南宅院");
        properties10.setCity("锦江区东大街下东大街999号");
        properties10.setPrice(760f);
        properties10.setIsSpecial((byte) 0 );
        properties10.setIsHot((byte) 1 );

        //出租信息添加信息
        propertiesRentType10.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO10 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO10.setProperties(properties10);
        propertiesAndRentTypeVO10.setPropertiesRentType(propertiesRentType10);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO10);

        //将房产信息的集合保存到modelMap里面
        modelMap.put("propertiesAndRentTypeVOS",propertiesAndRentTypeVOS);
        modelMap.put("propertiesAndRentTypeVOS1",propertiesAndRentTypeVOS1);

        return "properties-left-sidebar";
    }

    @RequestMapping("properties-list-left-sidebar.html")
    public String propertiesListLeftSidebar(ModelMap modelMap){

        //使用集合来保存每个界面需要的实例，这些实例保存到集合中后最终会保存到modelMap里面
        List<PropertiesAndRentTypeVO> propertiesAndRentTypeVOS = new ArrayList<>();

        //侧边需要的实例
        List<PropertiesAndRentTypeVO> propertiesAndRentTypeVOS1 = new ArrayList<>();

        //第1个数据
        //对应数据库实例
        Properties properties1 = new Properties();
        PropertiesRentType propertiesRentType1 = new PropertiesRentType();
        //房产信息添加信息
        properties1.setPictureUrl("assets/images/property/property-1.jpg");
        properties1.setSquare(500f);
        properties1.setRoomNumber(6);
        properties1.setBathroomNumber(4);
        properties1.setGarageNumber(3);
        properties1.setTitle("西南宅院");
        properties1.setCity("锦江区东大街下东大街568号");
        properties1.setPrice(550f);
        properties1.setIsSpecial((byte) 0 );
        properties1.setIsHot((byte) 1 );
        properties1.setDescription("室内精装修，拎包入住，客厅宽敞大方，卧室温馨舒适，厨房设施齐全，家具家电齐全，拥有舒心的居住环境");

        //出租信息添加信息
        propertiesRentType1.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO1 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO1.setProperties(properties1);
        propertiesAndRentTypeVO1.setPropertiesRentType(propertiesRentType1);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO1);
        propertiesAndRentTypeVOS1.add(propertiesAndRentTypeVO1);

        //第2个数据
        //对应数据库实例
        Properties properties2 = new Properties();
        PropertiesRentType propertiesRentType2 = new PropertiesRentType();
        //房产信息添加信息
        properties2.setPictureUrl("assets/images/property/property-2.jpg");
        properties2.setSquare(500f);
        properties2.setRoomNumber(6);
        properties2.setBathroomNumber(4);
        properties2.setGarageNumber(3);
        properties2.setTitle("北宅院");
        properties2.setCity("锦江区东大街下东大街568号");
        properties2.setPrice(550f);
        properties2.setIsSpecial((byte) 0 );
        properties2.setIsHot((byte) 1 );
        properties2.setDescription("室内精装修，拎包入住，客厅宽敞大方，卧室温馨舒适，厨房设施齐全，家具家电齐全，拥有舒心的居住环境");


        //出租信息添加信息
        propertiesRentType2.setTypeName("出售");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO2 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO2.setProperties(properties2);
        propertiesAndRentTypeVO2.setPropertiesRentType(propertiesRentType1);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO2);
        propertiesAndRentTypeVOS1.add(propertiesAndRentTypeVO2);



        //第3个数据
        //对应数据库实例
        Properties properties3 = new Properties();
        PropertiesRentType propertiesRentType3 = new PropertiesRentType();
        //房产信息添加信息
        properties3.setPictureUrl("assets/images/property/property-3.jpg");
        properties3.setSquare(500f);
        properties3.setRoomNumber(6);
        properties3.setBathroomNumber(4);
        properties3.setGarageNumber(3);
        properties3.setTitle("江南宅院");
        properties3.setCity("锦江区东大街下东大街568号");
        properties3.setPrice(550f);
        properties3.setIsSpecial((byte) 1 );
        properties3.setIsHot((byte) 0 );
        properties3.setDescription("室内精装修，拎包入住，客厅宽敞大方，卧室温馨舒适，厨房设施齐全，家具家电齐全，拥有舒心的居住环境");


        //出租信息添加信息
        propertiesRentType3.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO3 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO3.setProperties(properties3);
        propertiesAndRentTypeVO3.setPropertiesRentType(propertiesRentType3);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO3);
        propertiesAndRentTypeVOS1.add(propertiesAndRentTypeVO3);


        //第4个数据
        //对应数据库实例
        Properties properties4 = new Properties();
        PropertiesRentType propertiesRentType4 = new PropertiesRentType();
        //房产信息添加信息
        properties4.setPictureUrl("assets/images/property/property-4.jpg");
        properties4.setSquare(500f);
        properties4.setRoomNumber(6);
        properties4.setBathroomNumber(4);
        properties4.setGarageNumber(4);
        properties4.setTitle("江南宅院");
        properties4.setCity("锦江区东大街下东大街568号");
        properties4.setPrice(550f);
        properties4.setIsSpecial((byte) 0 );
        properties4.setIsHot((byte) 0 );
        properties4.setDescription("室内精装修，拎包入住，客厅宽敞大方，卧室温馨舒适，厨房设施齐全，家具家电齐全，拥有舒心的居住环境");


        //出租信息添加信息
        propertiesRentType4.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO4 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO4.setProperties(properties4);
        propertiesAndRentTypeVO4.setPropertiesRentType(propertiesRentType4);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO4);


        //第5个数据
        //对应数据库实例
        Properties properties5 = new Properties();
        PropertiesRentType propertiesRentType5 = new PropertiesRentType();
        //房产信息添加信息
        properties5.setPictureUrl("assets/images/property/property-5.jpg");
        properties5.setSquare(500f);
        properties5.setRoomNumber(6);
        properties5.setBathroomNumber(5);
        properties5.setGarageNumber(5);
        properties5.setTitle("江南宅院");
        properties5.setCity("锦江区东大街下东大街568号");
        properties5.setPrice(5500f);
        properties5.setIsSpecial((byte) 0 );
        properties5.setIsHot((byte) 0 );
        properties5.setDescription("室内精装修，拎包入住，客厅宽敞大方，卧室温馨舒适，厨房设施齐全，家具家电齐全，拥有舒心的居住环境");


        //出租信息添加信息
        propertiesRentType5.setTypeName("出售");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO5 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO5.setProperties(properties5);
        propertiesAndRentTypeVO5.setPropertiesRentType(propertiesRentType5);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO5);


        //第6个数据
        //对应数据库实例
        Properties properties6 = new Properties();
        PropertiesRentType propertiesRentType6 = new PropertiesRentType();
        //房产信息添加信息
        properties6.setPictureUrl("assets/images/property/property-6.jpg");
        properties6.setSquare(600f);
        properties6.setRoomNumber(6);
        properties6.setBathroomNumber(6);
        properties6.setGarageNumber(6);
        properties6.setTitle("江南宅院");
        properties6.setCity("锦江区东大街下东大街668号");
        properties6.setPrice(6600f);
        properties6.setIsSpecial((byte) 0 );
        properties6.setIsHot((byte) 0 );
        properties6.setDescription("室内精装修，拎包入住，客厅宽敞大方，卧室温馨舒适，厨房设施齐全，家具家电齐全，拥有舒心的居住环境");


        //出租信息添加信息
        propertiesRentType6.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO6 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO6.setProperties(properties6);
        propertiesAndRentTypeVO6.setPropertiesRentType(propertiesRentType6);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO6);

        //将房产信息的集合保存到modelMap里面
        modelMap.put("propertiesAndRentTypeVOS",propertiesAndRentTypeVOS);
        modelMap.put("propertiesAndRentTypeVOS1",propertiesAndRentTypeVOS1);


        return "properties-list-left-sidebar";
    }

    @RequestMapping("properties-list-right-sidebar.html")
    public String propertiesListRightSidebar(ModelMap modelMap){

        //使用集合来保存每个界面需要的实例，这些实例保存到集合中后最终会保存到modelMap里面
        List<PropertiesAndRentTypeVO> propertiesAndRentTypeVOS = new ArrayList<>();

        //侧边需要的实例
        List<PropertiesAndRentTypeVO> propertiesAndRentTypeVOS1 = new ArrayList<>();

        //第1个数据
        //对应数据库实例
        Properties properties1 = new Properties();
        PropertiesRentType propertiesRentType1 = new PropertiesRentType();
        //房产信息添加信息
        properties1.setPictureUrl("assets/images/property/property-1.jpg");
        properties1.setSquare(500f);
        properties1.setRoomNumber(6);
        properties1.setBathroomNumber(4);
        properties1.setGarageNumber(3);
        properties1.setTitle("西南宅院");
        properties1.setCity("锦江区东大街下东大街568号");
        properties1.setPrice(550f);
        properties1.setIsSpecial((byte) 0 );
        properties1.setIsHot((byte) 1 );
        properties1.setDescription("室内精装修，拎包入住，客厅宽敞大方，卧室温馨舒适，厨房设施齐全，家具家电齐全，拥有舒心的居住环境");

        //出租信息添加信息
        propertiesRentType1.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO1 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO1.setProperties(properties1);
        propertiesAndRentTypeVO1.setPropertiesRentType(propertiesRentType1);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO1);
        propertiesAndRentTypeVOS1.add(propertiesAndRentTypeVO1);

        //第2个数据
        //对应数据库实例
        Properties properties2 = new Properties();
        PropertiesRentType propertiesRentType2 = new PropertiesRentType();
        //房产信息添加信息
        properties2.setPictureUrl("assets/images/property/property-2.jpg");
        properties2.setSquare(500f);
        properties2.setRoomNumber(6);
        properties2.setBathroomNumber(4);
        properties2.setGarageNumber(3);
        properties2.setTitle("北宅院");
        properties2.setCity("锦江区东大街下东大街568号");
        properties2.setPrice(550f);
        properties2.setIsSpecial((byte) 0 );
        properties2.setIsHot((byte) 1 );
        properties2.setDescription("室内精装修，拎包入住，客厅宽敞大方，卧室温馨舒适，厨房设施齐全，家具家电齐全，拥有舒心的居住环境");


        //出租信息添加信息
        propertiesRentType2.setTypeName("出售");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO2 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO2.setProperties(properties2);
        propertiesAndRentTypeVO2.setPropertiesRentType(propertiesRentType1);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO2);
        propertiesAndRentTypeVOS1.add(propertiesAndRentTypeVO2);



        //第3个数据
        //对应数据库实例
        Properties properties3 = new Properties();
        PropertiesRentType propertiesRentType3 = new PropertiesRentType();
        //房产信息添加信息
        properties3.setPictureUrl("assets/images/property/property-3.jpg");
        properties3.setSquare(500f);
        properties3.setRoomNumber(6);
        properties3.setBathroomNumber(4);
        properties3.setGarageNumber(3);
        properties3.setTitle("江南宅院");
        properties3.setCity("锦江区东大街下东大街568号");
        properties3.setPrice(550f);
        properties3.setIsSpecial((byte) 1 );
        properties3.setIsHot((byte) 0 );
        properties3.setDescription("室内精装修，拎包入住，客厅宽敞大方，卧室温馨舒适，厨房设施齐全，家具家电齐全，拥有舒心的居住环境");


        //出租信息添加信息
        propertiesRentType3.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO3 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO3.setProperties(properties3);
        propertiesAndRentTypeVO3.setPropertiesRentType(propertiesRentType3);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO3);
        propertiesAndRentTypeVOS1.add(propertiesAndRentTypeVO3);


        //第4个数据
        //对应数据库实例
        Properties properties4 = new Properties();
        PropertiesRentType propertiesRentType4 = new PropertiesRentType();
        //房产信息添加信息
        properties4.setPictureUrl("assets/images/property/property-4.jpg");
        properties4.setSquare(500f);
        properties4.setRoomNumber(6);
        properties4.setBathroomNumber(4);
        properties4.setGarageNumber(4);
        properties4.setTitle("江南宅院");
        properties4.setCity("锦江区东大街下东大街568号");
        properties4.setPrice(550f);
        properties4.setIsSpecial((byte) 0 );
        properties4.setIsHot((byte) 0 );
        properties4.setDescription("室内精装修，拎包入住，客厅宽敞大方，卧室温馨舒适，厨房设施齐全，家具家电齐全，拥有舒心的居住环境");


        //出租信息添加信息
        propertiesRentType4.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO4 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO4.setProperties(properties4);
        propertiesAndRentTypeVO4.setPropertiesRentType(propertiesRentType4);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO4);


        //第5个数据
        //对应数据库实例
        Properties properties5 = new Properties();
        PropertiesRentType propertiesRentType5 = new PropertiesRentType();
        //房产信息添加信息
        properties5.setPictureUrl("assets/images/property/property-5.jpg");
        properties5.setSquare(500f);
        properties5.setRoomNumber(6);
        properties5.setBathroomNumber(5);
        properties5.setGarageNumber(5);
        properties5.setTitle("江南宅院");
        properties5.setCity("锦江区东大街下东大街568号");
        properties5.setPrice(5500f);
        properties5.setIsSpecial((byte) 0 );
        properties5.setIsHot((byte) 0 );
        properties5.setDescription("室内精装修，拎包入住，客厅宽敞大方，卧室温馨舒适，厨房设施齐全，家具家电齐全，拥有舒心的居住环境");


        //出租信息添加信息
        propertiesRentType5.setTypeName("出售");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO5 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO5.setProperties(properties5);
        propertiesAndRentTypeVO5.setPropertiesRentType(propertiesRentType5);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO5);


        //第6个数据
        //对应数据库实例
        Properties properties6 = new Properties();
        PropertiesRentType propertiesRentType6 = new PropertiesRentType();
        //房产信息添加信息
        properties6.setPictureUrl("assets/images/property/property-6.jpg");
        properties6.setSquare(600f);
        properties6.setRoomNumber(6);
        properties6.setBathroomNumber(6);
        properties6.setGarageNumber(6);
        properties6.setTitle("江南宅院");
        properties6.setCity("锦江区东大街下东大街668号");
        properties6.setPrice(6600f);
        properties6.setIsSpecial((byte) 0 );
        properties6.setIsHot((byte) 0 );
        properties6.setDescription("室内精装修，拎包入住，客厅宽敞大方，卧室温馨舒适，厨房设施齐全，家具家电齐全，拥有舒心的居住环境");


        //出租信息添加信息
        propertiesRentType6.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO6 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO6.setProperties(properties6);
        propertiesAndRentTypeVO6.setPropertiesRentType(propertiesRentType6);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO6);

        //将房产信息的集合保存到modelMap里面
        modelMap.put("propertiesAndRentTypeVOS",propertiesAndRentTypeVOS);
        modelMap.put("propertiesAndRentTypeVOS1",propertiesAndRentTypeVOS1);
        return "properties-list-right-sidebar";
    }

    @RequestMapping("properties-right-sidebar.html")
    public String propertiesRightSidebar(ModelMap modelMap){

        //使用集合来保存每个界面需要的实例，这些实例保存到集合中后最终会保存到modelMap里面
        List<PropertiesAndRentTypeVO> propertiesAndRentTypeVOS = new ArrayList<>();

        //侧边需要的实例
        List<PropertiesAndRentTypeVO> propertiesAndRentTypeVOS1 = new ArrayList<>();

        //第1个数据
        //对应数据库实例
        Properties properties1 = new Properties();
        PropertiesRentType propertiesRentType1 = new PropertiesRentType();
        //房产信息添加信息
        properties1.setPictureUrl("assets/images/property/property-1.jpg");
        properties1.setSquare(500f);
        properties1.setRoomNumber(6);
        properties1.setBathroomNumber(4);
        properties1.setGarageNumber(3);
        properties1.setTitle("西南宅院");
        properties1.setCity("锦江区东大街下东大街568号");
        properties1.setPrice(550f);
        properties1.setIsSpecial((byte) 0 );
        properties1.setIsHot((byte) 1 );

        //出租信息添加信息
        propertiesRentType1.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO1 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO1.setProperties(properties1);
        propertiesAndRentTypeVO1.setPropertiesRentType(propertiesRentType1);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO1);
        propertiesAndRentTypeVOS1.add(propertiesAndRentTypeVO1);

        //第2个数据
        //对应数据库实例
        Properties properties2 = new Properties();
        PropertiesRentType propertiesRentType2 = new PropertiesRentType();
        //房产信息添加信息
        properties2.setPictureUrl("assets/images/property/property-2.jpg");
        properties2.setSquare(500f);
        properties2.setRoomNumber(6);
        properties2.setBathroomNumber(4);
        properties2.setGarageNumber(3);
        properties2.setTitle("北宅院");
        properties2.setCity("锦江区东大街下东大街568号");
        properties2.setPrice(550f);
        properties2.setIsSpecial((byte) 0 );
        properties2.setIsHot((byte) 1 );

        //出租信息添加信息
        propertiesRentType2.setTypeName("出售");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO2 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO2.setProperties(properties2);
        propertiesAndRentTypeVO2.setPropertiesRentType(propertiesRentType1);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO2);
        propertiesAndRentTypeVOS1.add(propertiesAndRentTypeVO2);



        //第3个数据
        //对应数据库实例
        Properties properties3 = new Properties();
        PropertiesRentType propertiesRentType3 = new PropertiesRentType();
        //房产信息添加信息
        properties3.setPictureUrl("assets/images/property/property-3.jpg");
        properties3.setSquare(500f);
        properties3.setRoomNumber(6);
        properties3.setBathroomNumber(4);
        properties3.setGarageNumber(3);
        properties3.setTitle("江南宅院");
        properties3.setCity("锦江区东大街下东大街568号");
        properties3.setPrice(550f);
        properties3.setIsSpecial((byte) 1 );
        properties3.setIsHot((byte) 0 );

        //出租信息添加信息
        propertiesRentType3.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO3 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO3.setProperties(properties3);
        propertiesAndRentTypeVO3.setPropertiesRentType(propertiesRentType3);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO3);
        propertiesAndRentTypeVOS1.add(propertiesAndRentTypeVO3);


        //第4个数据
        //对应数据库实例
        Properties properties4 = new Properties();
        PropertiesRentType propertiesRentType4 = new PropertiesRentType();
        //房产信息添加信息
        properties4.setPictureUrl("assets/images/property/property-4.jpg");
        properties4.setSquare(500f);
        properties4.setRoomNumber(6);
        properties4.setBathroomNumber(4);
        properties4.setGarageNumber(4);
        properties4.setTitle("江南宅院");
        properties4.setCity("锦江区东大街下东大街568号");
        properties4.setPrice(550f);
        properties4.setIsSpecial((byte) 0 );
        properties4.setIsHot((byte) 0 );

        //出租信息添加信息
        propertiesRentType4.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO4 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO4.setProperties(properties4);
        propertiesAndRentTypeVO4.setPropertiesRentType(propertiesRentType4);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO4);


        //第5个数据
        //对应数据库实例
        Properties properties5 = new Properties();
        PropertiesRentType propertiesRentType5 = new PropertiesRentType();
        //房产信息添加信息
        properties5.setPictureUrl("assets/images/property/property-5.jpg");
        properties5.setSquare(500f);
        properties5.setRoomNumber(6);
        properties5.setBathroomNumber(5);
        properties5.setGarageNumber(5);
        properties5.setTitle("江南宅院");
        properties5.setCity("锦江区东大街下东大街568号");
        properties5.setPrice(5500f);
        properties5.setIsSpecial((byte) 0 );
        properties5.setIsHot((byte) 0 );

        //出租信息添加信息
        propertiesRentType5.setTypeName("出售");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO5 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO5.setProperties(properties5);
        propertiesAndRentTypeVO5.setPropertiesRentType(propertiesRentType5);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO5);


        //第6个数据
        //对应数据库实例
        Properties properties6 = new Properties();
        PropertiesRentType propertiesRentType6 = new PropertiesRentType();
        //房产信息添加信息
        properties6.setPictureUrl("assets/images/property/property-6.jpg");
        properties6.setSquare(600f);
        properties6.setRoomNumber(6);
        properties6.setBathroomNumber(6);
        properties6.setGarageNumber(6);
        properties6.setTitle("江南宅院");
        properties6.setCity("锦江区东大街下东大街668号");
        properties6.setPrice(6600f);
        properties6.setIsSpecial((byte) 1 );
        properties6.setIsHot((byte) 0 );

        //出租信息添加信息
        propertiesRentType6.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO6 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO6.setProperties(properties6);
        propertiesAndRentTypeVO6.setPropertiesRentType(propertiesRentType6);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO6);


        //第7个数据
        //对应数据库实例
        Properties properties7 = new Properties();
        PropertiesRentType propertiesRentType7 = new PropertiesRentType();
        //房产信息添加信息
        properties7.setPictureUrl("assets/images/property/property-7.jpg");
        properties7.setSquare(700f);
        properties7.setRoomNumber(7);
        properties7.setBathroomNumber(7);
        properties7.setGarageNumber(7);
        properties7.setTitle("江南宅院");
        properties7.setCity("锦江区东大街下东大街778号");
        properties7.setPrice(770f);
        properties7.setIsSpecial((byte) 0 );
        properties7.setIsHot((byte) 1 );

        //出租信息添加信息
        propertiesRentType7.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO7 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO7.setProperties(properties7);
        propertiesAndRentTypeVO7.setPropertiesRentType(propertiesRentType7);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO7);


        //第8个数据
        //对应数据库实例
        Properties properties8 = new Properties();
        PropertiesRentType propertiesRentType8 = new PropertiesRentType();
        //房产信息添加信息
        properties8.setPictureUrl("assets/images/property/property-8.jpg");
        properties8.setSquare(800f);
        properties8.setRoomNumber(8);
        properties8.setBathroomNumber(8);
        properties8.setGarageNumber(8);
        properties8.setTitle("江南宅院");
        properties8.setCity("锦江区东大街下东大街888号");
        properties8.setPrice(880f);
        properties8.setIsSpecial((byte) 1 );
        properties8.setIsHot((byte) 0 );

        //出租信息添加信息
        propertiesRentType8.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO8 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO8.setProperties(properties8);
        propertiesAndRentTypeVO8.setPropertiesRentType(propertiesRentType8);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO8);


        //第9个数据
        //对应数据库实例
        Properties properties9 = new Properties();
        PropertiesRentType propertiesRentType9 = new PropertiesRentType();
        //房产信息添加信息
        properties9.setPictureUrl("assets/images/property/property-9.jpg");
        properties9.setSquare(500f);
        properties9.setRoomNumber(5);
        properties9.setBathroomNumber(4);
        properties9.setGarageNumber(6);
        properties9.setTitle("江南宅院");
        properties9.setCity("锦江区东大街下东大街999号");
        properties9.setPrice(760f);
        properties9.setIsSpecial((byte) 0 );
        properties9.setIsHot((byte) 1 );

        //出租信息添加信息
        propertiesRentType9.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO9 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO9.setProperties(properties9);
        propertiesAndRentTypeVO9.setPropertiesRentType(propertiesRentType9);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO9);

        //将集合保存到modelMap里面
        modelMap.put("propertiesAndRentTypeVOS",propertiesAndRentTypeVOS);

        //第10个数据
        //对应数据库实例
        Properties properties10 = new Properties();
        PropertiesRentType propertiesRentType10 = new PropertiesRentType();
        //房产信息添加信息
        properties10.setPictureUrl("assets/images/property/property-10.jpg");
        properties10.setSquare(500f);
        properties10.setRoomNumber(5);
        properties10.setBathroomNumber(4);
        properties10.setGarageNumber(6);
        properties10.setTitle("江南宅院");
        properties10.setCity("锦江区东大街下东大街999号");
        properties10.setPrice(760f);
        properties10.setIsSpecial((byte) 0 );
        properties10.setIsHot((byte) 1 );

        //出租信息添加信息
        propertiesRentType10.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO10 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO10.setProperties(properties10);
        propertiesAndRentTypeVO10.setPropertiesRentType(propertiesRentType10);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO10);

        //将房产信息的集合保存到modelMap里面
        modelMap.put("propertiesAndRentTypeVOS",propertiesAndRentTypeVOS);
        modelMap.put("propertiesAndRentTypeVOS1",propertiesAndRentTypeVOS1);
        return "properties-right-sidebar";
    }

    @RequestMapping("single-properties.html")
    public String singleProperties(ModelMap modelMap){
        //使用集合来保存每个界面需要的实例，这些实例保存到集合中后最终会保存到modelMap里面
        List<PropertiesAndRentTypeVO> propertiesAndRentTypeVOS = new ArrayList<>();

        //第1个数据
        //对应数据库实例
        Properties properties = new Properties();
        PropertiesRentType propertiesRentType = new PropertiesRentType();
        //房产信息添加信息
        properties.setPictureUrl("assets/images/icons/marker.png");
        properties.setPrice(550f);
        properties.setSquare(500f);
        properties.setRoomNumber(6);
        properties.setBathroomNumber(4);
        properties.setGarageNumber(3);
        properties.setKitchenNumber(2);
        properties.setTitle("江南宅院");
        properties.setCity("锦江区东大街下东大街568号");
        properties.setDescription("阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴");
        properties.setIsRealtyManagement((byte) 1);//物管
        properties.setIsElectric((byte) 1);//通电
        properties.setIsNaturalGas((byte) 1);//通气
        properties.setIsWater((byte) 1);//通水
        properties.setIsAirConditioning((byte) 1);//有空调吗;
        properties.setIsFurniture((byte) 0);//家具
        properties.setIsBalcony((byte) 1);//阳台
        properties.setIsCabletv((byte) 0);//有线电话
        properties.setIsParking((byte) 0);//车库
        properties.setIsLift((byte) 1);//电梯
        properties.setIsPool((byte) 0);//泳池
        properties.setIsDishwater((byte) 1);//带洗衣机吗
        properties.setIsFerigerator((byte) 1);//冰箱
        properties.setIsKitchenUtensils((byte) 0);//厨房用具
        //视频地址
        properties.setVideoUrl("https:/wosmedia2.anjukestatic.com/mLNJiHgFeDmP/brokermediatransform/46_1138275153109630977.405.mp4");
        //地理位置
        properties.setAddress("四川省成都市青羊区");

        //出租信息添加信息
        propertiesRentType.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO.setProperties(properties);
        propertiesAndRentTypeVO.setPropertiesRentType(propertiesRentType);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO);

        modelMap.put("propertiesAndRentTypeVOS",propertiesAndRentTypeVOS);

      //侧边栏需要的数据


      //用户，意见反馈和回复的集合
        List<PropertiesFeedbackAndFeedbackReplyVO> propertiesFeedAndFeedReplyVOS = new ArrayList<>();

        //反馈意见
        PropertiesFeedback propertiesFeedback = new PropertiesFeedback();
        //反馈意见回复
        PropertiesFeedbackReply propertiesFeedbackReply = new PropertiesFeedbackReply();
        //反馈意见的用户
        User user = new User();
        //打包这三个属性
        PropertiesFeedbackAndFeedbackReplyVO propertiesFeedbackAndFeedbackReplyVO = new PropertiesFeedbackAndFeedbackReplyVO();

        //添加反馈信息
        propertiesFeedback.setContent("阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴");
        propertiesFeedback.setDate(new Date());

        user.setName("陈宇");

        //添加反馈回复
        propertiesFeedbackReply.setDate(new Date());
        propertiesFeedbackReply.setContent("阿巴阿巴巴爸爸巴巴");
        propertiesFeedbackReply.setId(9527L);

        propertiesFeedbackAndFeedbackReplyVO.setPropertiesFeedback(propertiesFeedback);
        propertiesFeedbackAndFeedbackReplyVO.setPropertiesFeedbackReply(propertiesFeedbackReply);
        propertiesFeedbackAndFeedbackReplyVO.setUser(user);

        propertiesFeedAndFeedReplyVOS.add(propertiesFeedbackAndFeedbackReplyVO);


        //反馈意见
        PropertiesFeedback propertiesFeedback1 = new PropertiesFeedback();
        //反馈意见回复
        PropertiesFeedbackReply propertiesFeedbackReply1 = new PropertiesFeedbackReply();
        //反馈意见的用户
        User user1 = new User();
        //打包这三个属性
        PropertiesFeedbackAndFeedbackReplyVO propertiesFeedbackAndFeedbackReplyVO1 = new PropertiesFeedbackAndFeedbackReplyVO();

        //添加反馈信息
        propertiesFeedback1.setContent("阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴");
        propertiesFeedback1.setDate(new Date());

        user1.setName("ggg");

        //添加反馈回复
        propertiesFeedbackReply1.setDate(new Date());
        propertiesFeedbackReply1.setContent("阿巴阿巴巴爸爸巴巴");
        propertiesFeedbackReply1.setId(9528L);

        propertiesFeedbackAndFeedbackReplyVO1.setPropertiesFeedback(propertiesFeedback1);
        propertiesFeedbackAndFeedbackReplyVO1.setPropertiesFeedbackReply(propertiesFeedbackReply1);
        propertiesFeedbackAndFeedbackReplyVO1.setUser(user1);

        propertiesFeedAndFeedReplyVOS.add(propertiesFeedbackAndFeedbackReplyVO1);

        modelMap.put("propertiesFeedAndFeedReplyVOS",propertiesFeedAndFeedReplyVOS);


        //侧边栏需要的数据
        //使用集合来保存每个界面需要的实例，这些实例保存到集合中后最终会保存到modelMap里面
        List<PropertiesAndRentTypeVO> propertiesAndRentTypeVOS2 = new ArrayList<>();

        //第1个数据
        //对应数据库实例
        Properties properties1 = new Properties();
        PropertiesRentType propertiesRentType1 = new PropertiesRentType();
        //房产信息添加信息
        properties1.setPictureUrl("assets/images/property/property-1.jpg");
        properties1.setSquare(500f);
        properties1.setRoomNumber(6);
        properties1.setBathroomNumber(4);
        properties1.setGarageNumber(3);
        properties1.setTitle("江南宅院");
        properties1.setCity("锦江区东大街下东大街568号");
        properties1.setPrice(550f);
        properties1.setIsSpecial((byte) 0 );
        properties1.setIsHot((byte) 1 );

        //出租信息添加信息
        propertiesRentType1.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO1 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO1.setProperties(properties1);
        propertiesAndRentTypeVO1.setPropertiesRentType(propertiesRentType1);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS2.add(propertiesAndRentTypeVO1);

        //第2个数据
        //对应数据库实例
        Properties properties2 = new Properties();
        PropertiesRentType propertiesRentType2 = new PropertiesRentType();
        //房产信息添加信息
        properties2.setPictureUrl("assets/images/property/property-2.jpg");
        properties2.setSquare(500f);
        properties2.setRoomNumber(6);
        properties2.setBathroomNumber(4);
        properties2.setGarageNumber(3);
        properties2.setTitle("小宅院");
        properties2.setCity("锦江区东大街下东大街568号");
        properties2.setPrice(550f);
        properties2.setIsSpecial((byte) 0 );
        properties2.setIsHot((byte) 1 );

        //出租信息添加信息
        propertiesRentType2.setTypeName("出售");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO2 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO2.setProperties(properties2);
        propertiesAndRentTypeVO2.setPropertiesRentType(propertiesRentType1);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS2.add(propertiesAndRentTypeVO2);

        //第3个数据
        //对应数据库实例
        Properties properties3 = new Properties();
        PropertiesRentType propertiesRentType3 = new PropertiesRentType();
        //房产信息添加信息
        properties3.setPictureUrl("assets/images/property/property-3.jpg");
        properties3.setSquare(500f);
        properties3.setRoomNumber(6);
        properties3.setBathroomNumber(4);
        properties3.setGarageNumber(3);
        properties3.setTitle("大宅院");
        properties3.setCity("锦江区东大街下东大街568号");
        properties3.setPrice(550f);
        properties3.setIsSpecial((byte) 1 );
        properties3.setIsHot((byte) 0 );

        //出租信息添加信息
        propertiesRentType3.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO3 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO3.setProperties(properties3);
        propertiesAndRentTypeVO3.setPropertiesRentType(propertiesRentType3);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS2.add(propertiesAndRentTypeVO3);
        modelMap.put("propertiesAndRentTypeVOS2",propertiesAndRentTypeVOS2);
        return "single-properties";
    }

    @RequestMapping("single-properties-right-sidebar.html")
    public String singlePropertiesRightSidebar(ModelMap modelMap){
        //使用集合来保存每个界面需要的实例，这些实例保存到集合中后最终会保存到modelMap里面
        List<PropertiesAndRentTypeVO> propertiesAndRentTypeVOS = new ArrayList<>();

        //第1个数据
        //对应数据库实例
        Properties properties = new Properties();
        PropertiesRentType propertiesRentType = new PropertiesRentType();
        //房产信息添加信息
        properties.setPictureUrl("assets/images/icons/marker.png");
        properties.setPrice(550f);
        properties.setSquare(500f);
        properties.setRoomNumber(6);
        properties.setBathroomNumber(4);
        properties.setGarageNumber(3);
        properties.setKitchenNumber(2);
        properties.setTitle("江南宅院");
        properties.setCity("锦江区东大街下东大街568号");
        properties.setDescription("阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴");
        properties.setIsRealtyManagement((byte) 1);//物管
        properties.setIsElectric((byte) 1);//通电
        properties.setIsNaturalGas((byte) 1);//通气
        properties.setIsWater((byte) 1);//通水
        properties.setIsAirConditioning((byte) 1);//有空调吗;
        properties.setIsFurniture((byte) 0);//家具
        properties.setIsBalcony((byte) 1);//阳台
        properties.setIsCabletv((byte) 0);//有线电话
        properties.setIsParking((byte) 0);//车库
        properties.setIsLift((byte) 1);//电梯
        properties.setIsPool((byte) 0);//泳池
        properties.setIsDishwater((byte) 1);//带洗衣机吗
        properties.setIsFerigerator((byte) 1);//冰箱
        properties.setIsKitchenUtensils((byte) 0);//厨房用具
        //视频地址
        properties.setVideoUrl("https:/wosmedia2.anjukestatic.com/mLNJiHgFeDmP/brokermediatransform/46_1138275153109630977.405.mp4");
        //地理位置
        properties.setAddress("四川省成都市青羊区");

        //出租信息添加信息
        propertiesRentType.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO.setProperties(properties);
        propertiesAndRentTypeVO.setPropertiesRentType(propertiesRentType);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS.add(propertiesAndRentTypeVO);

        modelMap.put("propertiesAndRentTypeVOS",propertiesAndRentTypeVOS);

        //侧边栏需要的数据


        //用户，意见反馈和回复的集合
        List<PropertiesFeedbackAndFeedbackReplyVO> propertiesFeedAndFeedReplyVOS = new ArrayList<>();

        //反馈意见
        PropertiesFeedback propertiesFeedback = new PropertiesFeedback();
        //反馈意见回复
        PropertiesFeedbackReply propertiesFeedbackReply = new PropertiesFeedbackReply();
        //反馈意见的用户
        User user = new User();
        //打包这三个属性
        PropertiesFeedbackAndFeedbackReplyVO propertiesFeedbackAndFeedbackReplyVO = new PropertiesFeedbackAndFeedbackReplyVO();

        //添加反馈信息
        propertiesFeedback.setContent("阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴");
        propertiesFeedback.setDate(new Date());

        user.setName("陈宇");

        //添加反馈回复
        propertiesFeedbackReply.setDate(new Date());
        propertiesFeedbackReply.setContent("阿巴阿巴巴爸爸巴巴");
        propertiesFeedbackReply.setId(9527L);

        propertiesFeedbackAndFeedbackReplyVO.setPropertiesFeedback(propertiesFeedback);
        propertiesFeedbackAndFeedbackReplyVO.setPropertiesFeedbackReply(propertiesFeedbackReply);
        propertiesFeedbackAndFeedbackReplyVO.setUser(user);

        propertiesFeedAndFeedReplyVOS.add(propertiesFeedbackAndFeedbackReplyVO);


        //反馈意见
        PropertiesFeedback propertiesFeedback1 = new PropertiesFeedback();
        //反馈意见回复
        PropertiesFeedbackReply propertiesFeedbackReply1 = new PropertiesFeedbackReply();
        //反馈意见的用户
        User user1 = new User();
        //打包这三个属性
        PropertiesFeedbackAndFeedbackReplyVO propertiesFeedbackAndFeedbackReplyVO1 = new PropertiesFeedbackAndFeedbackReplyVO();

        //添加反馈信息
        propertiesFeedback1.setContent("阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴阿巴");
        propertiesFeedback1.setDate(new Date());

        user1.setName("ggg");

        //添加反馈回复
        propertiesFeedbackReply1.setDate(new Date());
        propertiesFeedbackReply1.setContent("阿巴阿巴巴爸爸巴巴");
        propertiesFeedbackReply1.setId(9528L);

        propertiesFeedbackAndFeedbackReplyVO1.setPropertiesFeedback(propertiesFeedback1);
        propertiesFeedbackAndFeedbackReplyVO1.setPropertiesFeedbackReply(propertiesFeedbackReply1);
        propertiesFeedbackAndFeedbackReplyVO1.setUser(user1);

        propertiesFeedAndFeedReplyVOS.add(propertiesFeedbackAndFeedbackReplyVO1);

        modelMap.put("propertiesFeedAndFeedReplyVOS",propertiesFeedAndFeedReplyVOS);


        //侧边栏需要的数据
        //使用集合来保存每个界面需要的实例，这些实例保存到集合中后最终会保存到modelMap里面
        List<PropertiesAndRentTypeVO> propertiesAndRentTypeVOS2 = new ArrayList<>();

        //第1个数据
        //对应数据库实例
        Properties properties1 = new Properties();
        PropertiesRentType propertiesRentType1 = new PropertiesRentType();
        //房产信息添加信息
        properties1.setPictureUrl("assets/images/property/property-1.jpg");
        properties1.setSquare(500f);
        properties1.setRoomNumber(6);
        properties1.setBathroomNumber(4);
        properties1.setGarageNumber(3);
        properties1.setTitle("江南宅院");
        properties1.setCity("锦江区东大街下东大街568号");
        properties1.setPrice(550f);
        properties1.setIsSpecial((byte) 0 );
        properties1.setIsHot((byte) 1 );

        //出租信息添加信息
        propertiesRentType1.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO1 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO1.setProperties(properties1);
        propertiesAndRentTypeVO1.setPropertiesRentType(propertiesRentType1);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS2.add(propertiesAndRentTypeVO1);

        //第2个数据
        //对应数据库实例
        Properties properties2 = new Properties();
        PropertiesRentType propertiesRentType2 = new PropertiesRentType();
        //房产信息添加信息
        properties2.setPictureUrl("assets/images/property/property-2.jpg");
        properties2.setSquare(500f);
        properties2.setRoomNumber(6);
        properties2.setBathroomNumber(4);
        properties2.setGarageNumber(3);
        properties2.setTitle("小宅院");
        properties2.setCity("锦江区东大街下东大街568号");
        properties2.setPrice(550f);
        properties2.setIsSpecial((byte) 0 );
        properties2.setIsHot((byte) 1 );

        //出租信息添加信息
        propertiesRentType2.setTypeName("出售");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO2 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO2.setProperties(properties2);
        propertiesAndRentTypeVO2.setPropertiesRentType(propertiesRentType1);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS2.add(propertiesAndRentTypeVO2);

        //第3个数据
        //对应数据库实例
        Properties properties3 = new Properties();
        PropertiesRentType propertiesRentType3 = new PropertiesRentType();
        //房产信息添加信息
        properties3.setPictureUrl("assets/images/property/property-3.jpg");
        properties3.setSquare(500f);
        properties3.setRoomNumber(6);
        properties3.setBathroomNumber(4);
        properties3.setGarageNumber(3);
        properties3.setTitle("大宅院");
        properties3.setCity("锦江区东大街下东大街568号");
        properties3.setPrice(550f);
        properties3.setIsSpecial((byte) 1 );
        properties3.setIsHot((byte) 0 );

        //出租信息添加信息
        propertiesRentType3.setTypeName("出租");

        //页面需要的数据实例
        PropertiesAndRentTypeVO propertiesAndRentTypeVO3 = new PropertiesAndRentTypeVO();
        //页面需要的数据拼装
        propertiesAndRentTypeVO3.setProperties(properties3);
        propertiesAndRentTypeVO3.setPropertiesRentType(propertiesRentType3);

        //使用集合来保存每个实例
        propertiesAndRentTypeVOS2.add(propertiesAndRentTypeVO3);
        modelMap.put("propertiesAndRentTypeVOS2",propertiesAndRentTypeVOS2);

        return "single-properties-right-sidebar";
    }
}
